<?php
/*--------------------------------------------------------------------------------------------------
    alter_cookie_consent_purpose_description_data_type.php 2022-11-14
    Gambio GmbH
    http://www.gambio.de
    Copyright (c) 2022 Gambio GmbH
    Released under the GNU General Public License (Version 2)
    [http://www.gnu.org/licenses/gpl-2.0.html]
    --------------------------------------------------------------------------------------------------
 */

/** @var DatabaseModel $this */
/** @var int $t_success */

if ($this->columnExists('cookie_consent_panel_purposes', 'purpose_description')) {
    $sql = "ALTER TABLE `cookie_consent_panel_purposes` CHANGE `purpose_description` `purpose_description` TEXT NOT NULL;";
    $t_success &= $this->query($sql);
}